﻿<?php
function RsField($rs_sql){

	$rs_query=mysql_query($rs_sql);

	if (mysql_num_rows($rs_query)>0){

		$rs_row=mysql_fetch_row($rs_query);

		return $rs_row[0];

	}

	else {

		return '';

	}

}



function RsNum($rs_sql){

	$rs_query=mysql_query($rs_sql);

	return mysql_num_rows($rs_query);

}

function RsField_Array($rs_sql){

	$rs_query=mysql_query($rs_sql);

	if (mysql_num_rows($rs_query)>0){

		$rs_row=mysql_fetch_row($rs_query);

		return $rs_row;

	}

	else {

		return '';

	}

}

function NoData($language){

	if ($language=='en'){

		return '<p class="nodata">No Data...</p>';

	}

	else {

		return '<p class="nodata">No Data...</p>';

	}

}



$query=mysql_query('select * from '.$language.'_config where s_id=1');

$row=mysql_fetch_array($query);

$site_name=$row['s_name'];

$site_domain=$row['s_domain'];

$site_keyword=$row['s_keyword'];

$site_description=$row['s_description'];

$site_copyright=$row['s_copyright'];

 $site_description=$row['s_description'];

	$site_copyright=$row['s_copyright'];

	$site_tel=$row['s_tel'];
	$site_tel2=$row['s_tel2'];

	$site_logo=$row['s_logo'];
	$site_dilogo=$row['s_dilogo'];

	$site_tdc=$row['s_tdc'];
   
	$site_company=$row['s_company'];
 
 
 	$site_address=$row['s_tel'];
	$site_email=$row['s_email'];
	$site_fax=$row['s_fax'];
	$site_weibo=$row['s_weibo'];
	$site_qq=$row['s_qq'];

 

$site_soc=$row['s_soc'];

$site_soc_dir=$row['s_soc_dir'];

$site_soc_style=$row['s_soc_style'];

$site_soc_default=$row['s_soc_default'];

$site_soc_top=$row['s_soc_top'];

$site_soc_lr=$row['s_soc_lr'];

$site_soc_tel=$row['s_soc_tel'];

$site_soc_tdc=$row['s_soc_tdc'];

$site_soc2=$row['s_soc2'];

$site_soc2_code=$row['s_soc2_code'];

$site_stat=$row['s_stat'];

$site_stat_code=$row['s_stat_code'];



$site_name2=$row['s_name'];

$site_names=$row['s_name'];

$site_keyword2=$row['s_keyword'];

$site_description2=$row['s_description'];

 

switch($language){
 
 	
case 'cn':

	$language_path='';

	$language_paths='';

 	$weizhi='您的位置：';

 $shouye='首页';
 $guanyu='关于我们';
 $chanpin='产品中心';
 $fuwu='服务与支持';
 $xinwen='新闻中心';
  $anli='成功案例';
 $hezuo='合作伙伴';
 $lianxi='联系我们';
 $wenti='常见问题';
 $yuanxiao='院校合作';
 $job='人力资源';


 $gengduo='更多+';
$dianhua="电话";
$chuanzhen="传真";
$youxiang="邮箱";
$dizhi="地址";
$rexian="咨询热线";
$gongchang="工厂图片";
$rongyu="荣誉资质";
$xiangxi='查看详细';
$weizhi='您的当前位置：';
 
	$pn_str1='上一页: ';

	$pn_str2='下一页: ';

	$pn2_str1='上一页: ';

	$pn2_str2='下一页: ';

	$pn_str3='Volver';

	$pn_str4='';

	break;	
	
	
	
case 'en':

	$language_path='';

	$language_paths='';

 	$weizhi='You are here：';

 $shouye='Home';
 $guanyu='About Us';
 $chanpin='Products';
 $xinwen='News';
 $anli='Cases';
  $fuwu='Support';
 $hezuo='Partner';
 $lianxi='Contact';
 $gengduo='MORE+';

$dianhua="TEL";
$chuanzhen="FAX";
$youxiang="EMAIL";
$dizhi="ADD";
  $wenti='Faq';
$rexian="Hotline";
$gongchang="Factory";
$rongyu="Honor";
$xiangxi='DETAILS';
$weizhi='You Are Here：';
 $yuanxiao='Cooperation';
 $job='Job';

	$pn_str1='Prev: ';

	$pn_str2='Next: ';

	$pn2_str1='Prev: ';

	$pn2_str2='Next: ';

	$pn_str3='Volver';

	$pn_str4='';

	break;	
	
	 
	

}

$id=$_GET['id'];

$cid=$_GET['cid'];

$act=$_GET['act'];

$page=$_GET['page'];

if ($id!=''){

if (!is_numeric($id)){

	exit('Error: 参数错误！');

}

}

if ($cid!=''){

if (!is_numeric($cid)){

	exit('Error: 参数错误！');

}

}

if ($page!=''){

if (!is_numeric($page)){

	$page=1;

}

}

$page_show=true;

if ($page<=0){

	$page=1;

}
 

?>